package com.iflytek.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.iflytek.bean.Admin;
import com.iflytek.bean.Goods;
import com.iflytek.mapper.AdminMapper;
import com.iflytek.mapper.GoodsMapper;
import com.iflytek.service.AdminService;
import com.iflytek.service.GoodsService;

@Service
public class GoodsServiceImpl implements GoodsService{

	@Autowired
	private GoodsMapper goodsMapper;
	
	
	@Override
	public List<Goods> selectByExample(Object object) {
		return goodsMapper.selectByExample(null);
	}

	@Override
	public void insertSelective(Goods goods) {
		goodsMapper.insertSelective(goods);
	}

	@Override
	public void deleteByPrimaryKey(Integer goodId) {
		goodsMapper.deleteByPrimaryKey(goodId);
	}

	@Override
	public void updateByPrimaryKeySelective(Goods goods) {
		goodsMapper.updateByPrimaryKeySelective(goods);
	}

}
